/**
 * 用户相关路由
 * @format
 */

const express = require("express");
const { successResponse } = require("../middleware/responseHandler");

const router = express.Router();

// 用户信息路由
router.get("/info", (req, res) => {
  successResponse(res, {
    userId: 1,
    username: "demo_user",
    email: "demo@example.com",
  }, "获取用户信息成功");
});

// 用户列表路由
router.get("/list", (req, res) => {
  successResponse(res, {
    users: [
      { id: 1, name: "用户1" },
      { id: 2, name: "用户2" },
    ],
  }, "获取用户列表成功");
});

module.exports = router; 